<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<script>
// var table ="<table>"//用JS画一个table表格
// for(var j = 1;j<=7;j++){//j为表格行数
//     var data = "<tr>";
//     for(var i = 1;i<=6;i++){//i为表格列数
//         data +="<td></td>"
//     }
//     data += "</tr>";
//     table += data ;
// }
// table += "</table>"
// document.write(table);
// 

var table = "<table>";
for(var i = 0 ;i<5;i++){
    table+="<tr>"
    for(var j = 0;j<5;j++){
        table+="<td></td>"
    }
    table+="</tr>"
}
table+="</table>"
document.write(table)
</script>

<style>
    table{
        border: 1px solid #000;
    }
    td{
        border: 1px solid #000;
        height: 50px;
        width: 150px;
    }
</style> 
 
</body>
</html>